<?php
/**
 * Created by PhpStorm.
 * User: jsb
 * Date: 2018/8/23
 * Time: 14:36
 * Do：后台接口
 */
use think\Route;

//登陆
Route::get('login$', 'admin/Login/login');//登陆界面
Route::get('login/sendEmail', 'admin/Login/sendEmail');//生成验证码
Route::post('login/validatalogin', 'admin/Login/validataLogin');//验证提交的数据

//首页
Route::post('welcome$', 'admin/Index/index');//后台左侧导航栏
Route::get('welcome/analyse', 'admin/Index/welcome');//后台首页的数据

//管理员展示
Route::group('admin',function (){
    Route::get('/superlist', 'admin/Administrator/adminList');//超级管理员列表
    Route::get('/rolelist', 'admin/Administrator/adminRole');//角色列表
    Route::get('/roleadd', 'admin/Administrator/adminRoleAdd');//角色添加
    Route::get('/roleedit', 'admin/Administrator/adminRoleEdit');//角色编辑
    Route::get('/rulelist', 'admin/Administrator/adminPermission');//权限列表
    Route::get('/add', 'admin/Administrator/adminAdd');//管理员添加
    Route::get('/edit', 'admin/Administrator/adminEdit');//管理员编辑
});

//会员列表
Route::group('member',function(){
    Route::get('/list', 'admin/Member/memberList');//会员列表
    Route::get('/delete', 'admin/Member/memberDelete');//删除的会员
    Route::get('/browse', 'admin/Member/memberBrowse');//浏览记录
    Route::get('/download', 'admin/Member/memberDownload');//下载记录
    Route::get('/share', 'admin/Member/memberShare');//分享记录
    Route::get('/add', 'admin/Member/memberAdd');//会员添加
    Route::get('/edit', 'admin/Member/memberEdit');//会员编辑
    Route::get('/changePassword', 'admin/Member/memberChangePassword');//更改会员密码
    Route::get('/show', 'admin/Member/memberShow');//会员祥细信息
});

//商品管理
Route::group('product',function(){
    Route::get('/brand', 'admin/Product/productBrand');//品牌管理
    Route::get('/category', 'admin/Product/productCategory');//商品分类
    Route::get('/categoryadd', 'admin/Product/productCategoryAdd');//分类添加
    Route::get('/list', 'admin/Product/productList');//商品列表
    Route::get('/listAdd', 'admin/Product/productListAdd');//产品管理
    Route::get('/listEdit', 'admin/Product/productListEdit');//产品添加
});

//数据统计
Route::group('statistics',function(){
    Route::get('/linechart', 'admin/Statistics/lineChart');//折线图
    Route::get('/timechart', 'admin/Statistics/timeChart');//时间图
    Route::get('/zonechart', 'admin/Statistics/zoneChart');//区域图
    Route::get('/columnchart', 'admin/Statistics/columnChart');//柱状图
    Route::get('/cookiechart', 'admin/Statistics/cookieChart');//饼状图
    Route::get('/column3dchart', 'admin/Statistics/column3dChart');//3d柱状图
    Route::get('/cookie3dchart', 'admin/Statistics/cookie3dChart');//3d饼状图
});

//评论管理
Route::get('comment/feedback', 'admin/Comment/feedback');//反馈图

//图片管理
Route::group('picture',function(){
    Route::get('/list', 'admin/Picture/pictureList');//图片列表
    Route::get('/add', 'admin/Picture/pictureAdd');//图片添加
    Route::get('/edit', 'admin/Picture/pictureEdit');//图片编辑
    Route::get('/show', 'admin/Picture/pictureShow');//图片展示
});

//资讯管理
Route::group('message',function(){
    Route::get('/list', 'admin/Message/messageList');//资讯列表
    Route::get('/add', 'admin/Message/messageAdd');//资讯添加
    Route::get('/edit', 'admin/Message/messageEdit');//资讯编辑
});

//系统设置
Route::group('system',function(){
    Route::get('/setting', 'admin/System/systemSetting');//系统设置
    Route::get('/category', 'admin/System/systemCategory');//系统分类
    Route::get('/categoryadd', 'admin/System/systemCategoryAdd');//系统分类添加
    Route::get('/categoryedit', 'admin/System/systemCategoryEdit');//系统分类编辑
    Route::get('/dictionary', 'admin/System/systemDictionary');//数据字典
    Route::get('/shielding', 'admin/System/systemShielding');//屏蔽词
    Route::get('/log', 'admin/System/systemLog');//日志
});
